#include "Cor.h"

// ------------------------------------------------------
const Cor Cor::COLOR_WHITE(1.0f,1.0f,1.0f);
const Cor Cor::COLOR_BLACK(0.0f,0.0f,0.0f);
const Cor Cor::COLOR_DARK_GRAY(0.25f);
const Cor Cor::COLOR_GRAY(0.5f);
const Cor Cor::COLOR_LIGHT_GRAY(0.75f);
const Cor Cor::COLOR_RED(1.0f,0.0f,0.0f);
const Cor Cor::COLOR_GREEN(0.0f,1.0f,0.0f);
const Cor Cor::COLOR_BLUE(0.0f,0.0f,1.0f);
const Cor Cor::COLOR_MAGENTA(1.0f,0.0f,1.0f);
const Cor Cor::COLOR_CYAN(0.0f,1.0f,1.0f);
const Cor Cor::COLOR_ORANGE(1.0f,0.5f,0.25f);
const Cor Cor::COLOR_YELLOW(1.0f,1.0f,0.0f);
const Cor Cor::COLOR_BROWN(0.25f,0.0f,0.0f);
const Cor Cor::COLOR_PURPLE(0.5f,0.0f,0.5f);


// ----------------------------------------------------------------
Cor::Cor(float gray)
    : r(gray),g(gray),b(gray),a(1.0f)
{
}
// ----------------------------------------------------------------
Cor::Cor(float red,float green,float blue,float alpha)
    : r(red), g(green), b(blue), a(alpha)
{
}
// ----------------------------------------------------------------
void Cor::set(float red,float green,float blue,float alpha)
{
    r = red;
    g = green;
    b = blue;
    a = alpha;
}
